package com.hxzy.module.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hxzy.module.admin.api.menu.resp.ModuleAuthorityResp;
import com.hxzy.module.admin.entity.AdminMenu;
import com.hxzy.module.admin.service.AdminMenuService;
import com.hxzy.module.admin.mapper.AdminMenuMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 11452
* @description 针对表【admin_menu(商户对应模块表)】的数据库操作Service实现
* @createDate 2024-01-28 10:57:27
*/
@Service
public class AdminMenuServiceImpl extends ServiceImpl<AdminMenuMapper, AdminMenu>
    implements AdminMenuService{

    /**
     * 得到该商家的所有的菜单以及角色id还原是否有权限
     * @param merchantId
     * @param roleId
     * @return
     */
    @Override
    public List<ModuleAuthorityResp> getByAdminMenuList(Long merchantId,Long roleId) {
        return this.baseMapper.getByAdminMenuList(merchantId,roleId);
    }
}




